forum

home / developersection / forums / short casting error in c#

Short Casting Error in C#

Anonymous User 2957 10-May-2013
Hi Everyone!

I am trying to get short variables value from my database and need to cast it but it gives an casting error at debugging how can I solve this problem ?Can you help me?

 obj_OBJimagegallery.watermark =String.IsNullOrEmpty((dr["watermark"]).ToString()) ? null : (short?)(dr["watermark"]);     

Please help me!
Thanks is advance!  


c# c# 
Updated on 10-May-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By